import { CHANGE_COUNT } from '../actions/count'

function count(state = 888, action) {
    switch (action.type) {
        case CHANGE_COUNT:
            state += action.num
            return state
        default:
            return state
    }
}

export default count